import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';

let value = 1;

@Component({
  selector: 'app-counter',
  standalone: true,
  imports: [CommonModule],
  template: ` <div class="badge badge-secondary w-6">{{ count }}</div> `,
  styles: [],
})
export class CounterComponent {
  count = value;
  constructor() {
    value++;
  }
}
